import type { loginCodeType, LoginData, loginType } from "../type/login"
import http from "../utils/request"

// 登录接口
export const login=(data:loginType)=>http.post<LoginData>('/administrator/checkloginByCode',data)
// 获取验证码
export const getCode=()=>http.get<loginCodeType>('/auth/authCode')
// 获取用户权限